/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the wrench4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: lengleng (wangiegie@gmail.com)
 */

package cn.mawenda.docker.controller;

import cn.mawenda.docker.common.base.R;
import cn.mawenda.docker.entity.ContainerMonitorLog;
import cn.mawenda.docker.service.ContainerMonitorLogService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.security.SecurityRequirement;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.http.HttpHeaders;
import org.springframework.web.bind.annotation.*;


/**
 * 容器监控统计日志记录表
 *
 * @author Ma.wenda
 * @date 2024-05-16 15:10:45
 */
@RestController
@RequiredArgsConstructor
@RequestMapping("/monitor" )
@Tag(name = "容器监控统计日志记录表管理")
@SecurityRequirement(name = HttpHeaders.AUTHORIZATION)
public class ContainerMonitorLogController {

    private final  ContainerMonitorLogService containerMonitorLogService;

    @Operation(summary = "分页查询")
    @GetMapping("/container/cpu" )
    public R cpu(ContainerMonitorLog containerMonitorLog) {
        return R.ok();
    }

    @GetMapping("/" )
    public R test(String name) {
        containerMonitorLogService.containerMonitorStatistics(name);
        return R.ok();
    }


}
